window: Avoid unnecessary attach-widget resets
authorBenjamin Otte <otte@redhat.com>
Mon, 30 Jan 2012 13:41:05 +0000 (14:41 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 31 Jan 2012 02:43:43 +0000 (03:43 +0100)
gtk/gtkwindow.c

index 2239203a09a3f28be83d74e64e1b5564bdfac887..32e736f3cd12694b5cf303c74a459757f188344f 100644 (file)
@@ -2651,6 +2651,9 @@ gtk_window_set_attached_to (GtkWindow *window,
 
   priv = window->priv;
 
+  if (priv->attach_widget == attach_widget)
+    return;
+
   remove_attach_widget (window);
 
   priv->attach_widget = attach_widget;